package com.learning.spring.ioc.container;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: AnnotationConfig
 * Description: 使用 Java Config 实现容器的配置，代替 spring-context.xml
 * Date: 2018/8/2 13:45 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Configuration
public class AnnotationConfig {

    @Bean(name = "annotationBean")
    public BeanContainer beanContainer() {
        return new BeanContainerImpl();
    }
}